package com.baselibrary.libs.View.multiseriate;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

import com.baselibrary.libs.R;
import com.baselibrary.libs.View.baseView.BaseView;

/**
 * Created by Administrator 于萌萌
 * 创建日期: 16:58 . 2017年03月20日
 * 描述:
 * <p>
 * <p>
 * 备注:
 */

public class MultiseriateItem extends BaseView {

    private ImageView mIv;
    private TextView mTv;
    private EditText mEd;

    public MultiseriateItem(Context context) {
        super(context);
    }

    public MultiseriateItem(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public MultiseriateItem(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public int getXml() {
        return R.layout.multiseriate_item;
    }

    @Override
    public void initView(View view) {
        mIv = (ImageView)view.findViewById(R.id.iv);
        mTv = (TextView)view.findViewById(R.id.tv);
        mEd = (EditText)view.findViewById(R.id.ed);


    }


    public MultiseriateItem setIv(int id){
        mIv.setBackgroundResource(id);
        return this;
    }
    public MultiseriateItem setTv(String t){
        mTv.setText(t);
        return this;
    }
    public MultiseriateItem setEd(String t){
        mEd.setText(t);
        return this;
    }
}
